﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using schedulelist.ORM.domain;

namespace schedulelist.ORM.mapping
{
    public class TicketsMap : ClassMap<Tickets>
    {
        public TicketsMap()
        {
            Table("tickets");
            References(x => x.owner, "ownerId");
            Id(x => x.Id).GeneratedBy.Native();
            Map(x => x.dm);
            Map(x => x.dd);
            Map(x => x.task);
            Map(x => x.status);
            References(x => x.cust, "custId");
            References(x => x.ex, "execId");
            References(x => x.cat, "catId");
            Map(x => x.addinf);
        }
    }
}